<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>

	<body>

		<div id="appInfo"></div>
		<script type="text/javascript">
			window.onload = function(){
				var u = navigator.userAgent,
					app = navigator.appVersion;

				var isAndroid = u.match(/(Android);?[\s\/]+([\d.]+)?/); //android终端
				var isiOS = u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

				urls = {
					'android': 'https://qd.myapp.com/myapp/qqteam/AndroidQQ/mobileqq_android.apk',
					'ios': 'https://itunes.apple.com/cn/app/qq-2011/id444934666',
					'other': './html/dowloadApp.html'
				};

				if(isAndroid) {
					//这个是安卓操作系统
					window.location.href = urls.android; //android 下载地址
					return;
				}
				if(isiOS) {
					//这个是ios操作系统
					window.location.href = urls.ios; //ios 下载地址
					return;
				} else {
					window.location.href = urls.other; //其他
				}
			}
		</script>
	</body>

</html>